/**********************************************************************
 * FILE : BasePage.java
 * CREATE DATE : 2011-12-9
 * DESCRIPTION :
 * CHANGE HISTORY LOG
 * ---------------------------------------------------------------------
 * NO.| DATE | NAME | REASON | DESCRIPTION
 * ---------------------------------------------------------------------
 * 1 | 2011-12-9 | Sting | 草创版本
 * ---------------------------------------------------------------------
 */
package com.sgm.de.benchmark.lancher.web;

import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.request.resource.PackageResourceReference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Sting
 *         主要作用:
 *         注意事项:
 */
public class BasePage extends WebPage {
    private static final long serialVersionUID = 1L;
    private static Logger logger = LoggerFactory.getLogger(BasePage.class);

    public BasePage() {
        add(new Label("title", "Jobs Test Web"));
    }

    /*
     * @inheritDoc
     */
    @Override
    public void renderHead(IHeaderResponse response) {
        response.renderCSSReference(new PackageResourceReference(getClass(), "resources/bootstrap.css"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/jquery-1.7.min.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(),
                "resources/jquery.tablesorter.min.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/bootstrap-alerts.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/bootstrap-buttons.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/bootstrap-dropdown.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/bootstrap-modal.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/bootstrap-twipsy.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/bootstrap-popover.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/bootstrap-scrollspy.js"));
        response.renderJavaScriptReference(new PackageResourceReference(getClass(), "resources/bootstrap-tabs.js"));
    }
}
